﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace SAIN.Wuc
{
    public partial class wucLogin : System.Web.UI.UserControl
    {
        public event EventHandler onLogin;
        public event EventHandler onLoginError;
        
        #region GUID_Session
        public string GUID_Session
        {
            get
            {
                if (Session["GUID_Session"] == null)
                {
                    Session["GUID_Session"] = "";
                }

                return Session["GUID_Session"].ToString();
            }
            set
            {
                Session["GUID_Session"] = value;
            }
        }
        #endregion
        protected void Page_Load(object sender, EventArgs e)
        {
            //this.Visible =
            //    new BC.Security.Login.UsuarioBC()
            //    .isLogin(this.    Q2GUID_Session);
        }

        protected void btnEntrar_Click(object sender, EventArgs e)
        {
            try
            {
                
            }
            catch (Exception ex)
            {
                if (onLoginError != null)
                    onLoginError(ex, e);
            }
        }
    }
}